import requests

url = 'https://img1.baidu.com/it/u=1942905928,1786909962&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800'

headers={
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
}

response = requests.get(url=url,headers=headers)
content = response.content
with open("tiger.jpg",'wb') as f:
    f.write(content)
